<!--轮播 -->
<div class="banner">
<ul class="am-slides">
<?php $count=1;?>
<?php foreach ($banners as $banner) { ?>
<?php if ($banner['link']) { ?>
<li class="banner<?php echo $count ?>"><a href="<?php echo $banner['link']; ?>"><img data-src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>"class='lazyload'/></a></li>
<?php } else { ?>
<li class="banner<?php echo $count ?>"><a><img data-src="<?php echo $banner['image']; ?>" class='lazyload' alt="<?php echo $banner['title']; ?>"/></a></li>
<?php } ?>
<?php $count++;?>
 <?php } ?> </ul></div><div class="clear"></div>
<script type="text/javascript">
	$(function() {
    $('.banner').unslider({
    speed: 500,               // 动画的滚动速度
    delay: 3000,              //  每个滑块的停留时间
    keys: true,               //  是否支持键盘
    dots: true,               //  是否显示翻页圆点
});
});
</script>
